setLayoutResource

open fun setLayoutResource(layoutResource: Int)(source)

Specifies the layout resource to inflate when this StubbedView becomes visible or invisible or when inflate is invoked. The View created by inflating the layout resource is used to replace this StubbedView in its parent.

Parameters

layoutResource

A valid layout resource identifier (different from 0.)

See also